
import java.text.SimpleDateFormat;
import java.util.Date;

public class Test {

    public static void main(String args[]) {
        SimpleDateFormat sdfs =   new SimpleDateFormat("dd/MM/yy HH:mm:ss");
        
        Date d = new Date();
        long hoy = d.getTime();
        System.out.println(hoy);
        System.out.println(sdfs.format(hoy)); 
        
    }
}
